package com.tiezhu.springdemo.mapper;


import com.tiezhu.springdemo.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {

    List<User> queryUserByName(String userName);

    User queryUserById(int id);

    int addUser(User user);

    int updateUser(User user);

    int deleteUserByName(String userName);
}
